package com.jason.library.common.base.callback

import android.content.Context
import android.view.View
import android.widget.Toast
import com.jason.library.common.R
import com.kingja.loadsir.callback.Callback

class TimeoutCallback : Callback() {
    override fun onCreateView(): Int {
        return R.layout.layout_loading_timeout
    }

    override fun onReloadEvent(
        context: Context,
        view: View
    ): Boolean {
        Toast.makeText(
            context.applicationContext,
            "Connecting to the network again!",
            Toast.LENGTH_SHORT
        ).show()
        return false
    }
}